﻿@model System.Collections.Generic.IEnumerable<CarsRegistrationService.Models.ViewModel.RequestViewModel>
<table id="RequestsTable">
    <tr>
        <th>
            Дата подачи заявки
        </th>
        <th>
            Ф.И.О владельца
        </th>
        <th>
            Номер ТС
        </th>
        <th>
        </th>
        <th>
        </th>
    </tr>
    @if (Model != null)
    {
        foreach (var request in Model)
        {
        <tr>
            <td>
                @String.Format("{0:g}", request.Date)
            </td>
            <td>
                @request.OwnerFullName
            </td>
            <td>
                @request.VehicleNumber
            </td>
            <td>
                @Html.ActionLink("Обработать", "Create", new { ID = request.ID })
            </td>
            <td>
                @Html.ActionLink("Удалить", "Delete", new { ID = request.ID })
            </td>
        </tr>
        }
    }
</table>